home *** CD-ROM | disk | FTP | other *** search
/ Aminet 50 / Aminet 50 (2002)(GTI - Schatztruhe)[!][Aug 2002].iso / Aminet / text / edit / tecoc-146.lha / exectc.c < prev    next >
C/C++ Source or Header  |  1991-07-05  |  775b  |  29 lines

  1. /*****************************************************************************
  2.  
  3.     ExeCtC()
  4.  
  5.     This function executes a control-C command.
  6.  
  7. *****************************************************************************/
  8.  
  9. #include "zport.h"        /* define portability identifiers */
  10. #include "tecoc.h"        /* define general identifiers */
  11. #include "defext.h"        /* define external global variables */
  12. #include "dchars.h"        /* define identifiers for characters */
  13.  
  14. DEFAULT ExeCtC()        /* execute an control-C command */
  15. {
  16.     DBGFEN(1,"ExeCtC",NULL);
  17.  
  18.     if ((CBfPtr < CStEnd) && (*(CBfPtr+1) == CTRL_C)) { /* if it's ^C^C */
  19.         TAbort(EXIT_SUCCESS);
  20.     }
  21.  
  22.     CmdMod = '\0';            /* clear modifiers flags */
  23.     EStTop = EStBot;        /* clear expression stack */
  24.  
  25.     DBGFEX(1,DbgFNm,"FAILURE");
  26.  
  27.     return FAILURE;
  28. }
  29.